$(".selector").on({ mouseenter: function () { //stuff to do on mouse enter }, mouseleave: function () { //stuff to do on mouse leave } });
$( selector ).mouseenter( handlerIn ).mouseleave( handlerOut );